import http from "@/api";
//任务详情设备列表
export const devSubtaskFind = (params: any) => {
	return http.get(`/device/subtask/find`, params);
};
//子任务执行情况
export const devSubtaskCount = (params: any) => {
	return http.get(`/device/subtask/count`, params);
};
//设备任务列表
export const devTaskFind = (params: any) => {
	return http.get(`/device/task/find`, params);
};
//新增任务
export const devTaskAdd = (params: any) => {
	return http.post<any>(`/device/task/add`, params);
};
//修改任务
export const devTaskEdit = (params: any) => {
	return http.post<any>(`/device/task/edit`, params);
};
//删除任务
export const devTaskDel = (params: any) => {
	return http.post(`/device/task/del`, params);
};
//执行任务
export const devTaskExec = (params: any) => {
	return http.post(`/device/task/exec`, params);
};
//设置数据excel导入
export const devTaskImport = (params: any) => {
	return http.post(`/device/task/import`, params);
};
//设置数据模板下载
export const devTaskTemplate = () => {
	return http.downloadGet(`/device/task/template`, {}, { responseType: "blob" });
};
